const http = uni.$u.http

//登录
export const miniLogin = (params) => http.post(`/api/user/mini-login`, params)

//商品列表
export const goodsIndex = (params) => http.post(`/api/goods/index`, params)

//获取网站配置
export const getConfig = (params) => http.get(`/api/site/getConfig`, params)

//文章搜索
export const getArticle = (params) => http.post(`/api/search/article`, params)

//项目
export const getProjectList = (params) => http.get(`/api/project/getProjectList`, params)

//获取项目的分类列表
export const getCategoryList = (params) => http.get(`/api/project/getCategoryList`, {params})

//获取热门文章列表
export const getHotArticle = (params) => http.get(`/api/analysis/getHotArticle`, {params})

//获取热门用户列表
export const getHotUser = (params) => http.get(`/api/analysis/getHotUser`, {params})

//获取热门用户列表
export const getProjectArticle = (params) => http.post(`/api/project/getProjectArticle`, params)

//获取热门关键词列表
export const getHotKeyword = (params) => http.get(`/api/hotKeyword/list`, {params})

//获取登录二维码
export const getQrCodeUrl = (params) => http.get(`/api/oauth/getQrCodeUrl`, {params})

//使用登录二维码Token获取AccessToken
export const getAccessToken = (params) => http.get(`/api/oauth/getAccessToken`, {params})

//获取当前登录用户的信息
export const getUserInfo = (params) => http.get(`/api/user/getUserInfo`, {params})